\section{pdo\+\_\+list.\+h File Reference}
\label{pdo__list_8h}\index{pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}}


Ether\+C\+AT P\+DO list structure.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t}
\begin{DoxyCompactList}\small\item\em Ether\+C\+AT P\+DO list. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\label{pdo__list_8h_aee1095c2e92c859063b1ed782e5bf7d6}} 
void \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+init} (\textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em P\+DO list constructor. \end{DoxyCompactList}\item 
\mbox{\label{pdo__list_8h_aa9f079345fae9a1b8ceb9d142ff41368}} 
void \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+clear} (\textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em P\+DO list destructor. \end{DoxyCompactList}\item 
\mbox{\label{pdo__list_8h_a6b1d3da4ada951f662be5dc4c8519026}} 
void \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+clear\+\_\+pdos} (\textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Clears the list of mapped P\+D\+Os. \end{DoxyCompactList}\item 
\textbf{ ec\+\_\+pdo\+\_\+t} $\ast$ \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+add\+\_\+pdo} (\textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$, uint16\+\_\+t)
\begin{DoxyCompactList}\small\item\em Add a new P\+DO to the list. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+add\+\_\+pdo\+\_\+copy} (\textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$, const \textbf{ ec\+\_\+pdo\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Add the copy of an existing P\+DO to the list. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+copy} (\textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$, const \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Makes a deep copy of another P\+DO list. \end{DoxyCompactList}\item 
uint16\+\_\+t \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+total\+\_\+size} (const \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Calculates the total size of the mapped P\+DO entries. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+equal} (const \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$, const \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Compares two P\+DO lists. \end{DoxyCompactList}\item 
\textbf{ ec\+\_\+pdo\+\_\+t} $\ast$ \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo} (const \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$, uint16\+\_\+t)
\begin{DoxyCompactList}\small\item\em Finds a P\+DO with the given index. \end{DoxyCompactList}\item 
const \textbf{ ec\+\_\+pdo\+\_\+t} $\ast$ \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo\+\_\+const} (const \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$, uint16\+\_\+t)
\begin{DoxyCompactList}\small\item\em Finds a P\+DO with the given index and returns a const pointer. \end{DoxyCompactList}\item 
const \textbf{ ec\+\_\+pdo\+\_\+t} $\ast$ \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo\+\_\+by\+\_\+pos\+\_\+const} (const \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$, unsigned int)
\begin{DoxyCompactList}\small\item\em Finds a P\+DO via its position in the list. \end{DoxyCompactList}\item 
unsigned int \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+count} (const \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Get the number of P\+D\+Os in the list. \end{DoxyCompactList}\item 
\mbox{\label{pdo__list_8h_ac7e42782cb2774a74ffd38e792e7da7c}} 
void \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+print} (const \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Outputs the P\+D\+Os in the list. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Ether\+C\+AT P\+DO list structure. 



\subsection{Function Documentation}
\mbox{\label{pdo__list_8h_a289f67d8c8bb5978608d213916fe7fb9}} 
\index{pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}!ec\+\_\+pdo\+\_\+list\+\_\+add\+\_\+pdo@{ec\+\_\+pdo\+\_\+list\+\_\+add\+\_\+pdo}}
\index{ec\+\_\+pdo\+\_\+list\+\_\+add\+\_\+pdo@{ec\+\_\+pdo\+\_\+list\+\_\+add\+\_\+pdo}!pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}}
\subsubsection{ec\+\_\+pdo\+\_\+list\+\_\+add\+\_\+pdo()}
{\footnotesize\ttfamily \textbf{ ec\+\_\+pdo\+\_\+t}$\ast$ ec\+\_\+pdo\+\_\+list\+\_\+add\+\_\+pdo (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$}]{pl,  }\item[{uint16\+\_\+t}]{index }\end{DoxyParamCaption})}



Add a new P\+DO to the list. 

\begin{DoxyReturn}{Returns}
Pointer to new P\+DO, otherwise an E\+R\+R\+\_\+\+P\+T\+R() code. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em pl} & P\+DO list. \\
\hline
{\em index} & P\+DO index. \\
\hline
\end{DoxyParams}


Definition at line 117 of file pdo\+\_\+list.\+c.

\mbox{\label{pdo__list_8h_a0ce0c1d5b23d99d13b24acb4cb4b0cd7}} 
\index{pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}!ec\+\_\+pdo\+\_\+list\+\_\+add\+\_\+pdo\+\_\+copy@{ec\+\_\+pdo\+\_\+list\+\_\+add\+\_\+pdo\+\_\+copy}}
\index{ec\+\_\+pdo\+\_\+list\+\_\+add\+\_\+pdo\+\_\+copy@{ec\+\_\+pdo\+\_\+list\+\_\+add\+\_\+pdo\+\_\+copy}!pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}}
\subsubsection{ec\+\_\+pdo\+\_\+list\+\_\+add\+\_\+pdo\+\_\+copy()}
{\footnotesize\ttfamily int ec\+\_\+pdo\+\_\+list\+\_\+add\+\_\+pdo\+\_\+copy (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$}]{pl,  }\item[{const \textbf{ ec\+\_\+pdo\+\_\+t} $\ast$}]{pdo }\end{DoxyParamCaption})}



Add the copy of an existing P\+DO to the list. 

\begin{DoxyReturn}{Returns}
0 on success, else $<$ 0 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em pl} & P\+DO list. \\
\hline
{\em pdo} & P\+DO to add. \\
\hline
\end{DoxyParams}


Definition at line 141 of file pdo\+\_\+list.\+c.

\mbox{\label{pdo__list_8h_adc6f43356c29fa3e62c9178264fb3c39}} 
\index{pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}!ec\+\_\+pdo\+\_\+list\+\_\+copy@{ec\+\_\+pdo\+\_\+list\+\_\+copy}}
\index{ec\+\_\+pdo\+\_\+list\+\_\+copy@{ec\+\_\+pdo\+\_\+list\+\_\+copy}!pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}}
\subsubsection{ec\+\_\+pdo\+\_\+list\+\_\+copy()}
{\footnotesize\ttfamily int ec\+\_\+pdo\+\_\+list\+\_\+copy (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$}]{pl,  }\item[{const \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$}]{other }\end{DoxyParamCaption})}



Makes a deep copy of another P\+DO list. 

\begin{DoxyReturn}{Returns}
0 on success, else $<$ 0 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em pl} & P\+DO list. \\
\hline
{\em other} & P\+DO list to copy from. \\
\hline
\end{DoxyParams}


Definition at line 177 of file pdo\+\_\+list.\+c.

\mbox{\label{pdo__list_8h_a942de0a05c5cdcea43f595d2ff38387b}} 
\index{pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}!ec\+\_\+pdo\+\_\+list\+\_\+total\+\_\+size@{ec\+\_\+pdo\+\_\+list\+\_\+total\+\_\+size}}
\index{ec\+\_\+pdo\+\_\+list\+\_\+total\+\_\+size@{ec\+\_\+pdo\+\_\+list\+\_\+total\+\_\+size}!pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}}
\subsubsection{ec\+\_\+pdo\+\_\+list\+\_\+total\+\_\+size()}
{\footnotesize\ttfamily uint16\+\_\+t ec\+\_\+pdo\+\_\+list\+\_\+total\+\_\+size (\begin{DoxyParamCaption}\item[{const \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$}]{pl }\end{DoxyParamCaption})}



Calculates the total size of the mapped P\+DO entries. 


\begin{DoxyRetVals}{Return values}
{\em Data} & size in byte. \\
\hline
\end{DoxyRetVals}

\begin{DoxyParams}{Parameters}
{\em pl} & P\+DO list. \\
\hline
\end{DoxyParams}


Definition at line 87 of file pdo\+\_\+list.\+c.

\mbox{\label{pdo__list_8h_ac4442e6596e4034f09bac0fbf6eb2821}} 
\index{pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}!ec\+\_\+pdo\+\_\+list\+\_\+equal@{ec\+\_\+pdo\+\_\+list\+\_\+equal}}
\index{ec\+\_\+pdo\+\_\+list\+\_\+equal@{ec\+\_\+pdo\+\_\+list\+\_\+equal}!pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}}
\subsubsection{ec\+\_\+pdo\+\_\+list\+\_\+equal()}
{\footnotesize\ttfamily int ec\+\_\+pdo\+\_\+list\+\_\+equal (\begin{DoxyParamCaption}\item[{const \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$}]{pl1,  }\item[{const \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$}]{pl2 }\end{DoxyParamCaption})}



Compares two P\+DO lists. 

Only the list is compared, not the P\+DO entries (i. e. the P\+DO mapping).


\begin{DoxyRetVals}{Return values}
{\em 1} & The given P\+DO lists are equal. \\
\hline
{\em 0} & The given P\+DO lists differ. \\
\hline
\end{DoxyRetVals}

\begin{DoxyParams}{Parameters}
{\em pl1} & First list. \\
\hline
{\em pl2} & Second list. \\
\hline
\end{DoxyParams}


Definition at line 207 of file pdo\+\_\+list.\+c.

\mbox{\label{pdo__list_8h_a622aeac2fc2707331ccf4a25f0250e74}} 
\index{pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}!ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo@{ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo}}
\index{ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo@{ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo}!pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}}
\subsubsection{ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo()}
{\footnotesize\ttfamily \textbf{ ec\+\_\+pdo\+\_\+t}$\ast$ ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo (\begin{DoxyParamCaption}\item[{const \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$}]{pl,  }\item[{uint16\+\_\+t}]{index }\end{DoxyParamCaption})}



Finds a P\+DO with the given index. 

\begin{DoxyReturn}{Returns}
Search result, or N\+U\+LL. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em pl} & P\+DO list. \\
\hline
{\em index} & P\+DO index. \\
\hline
\end{DoxyParams}


Definition at line 243 of file pdo\+\_\+list.\+c.

\mbox{\label{pdo__list_8h_a6fc81f6e6401f70beb9686eb6ac11ed2}} 
\index{pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}!ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo\+\_\+const@{ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo\+\_\+const}}
\index{ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo\+\_\+const@{ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo\+\_\+const}!pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}}
\subsubsection{ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo\+\_\+const()}
{\footnotesize\ttfamily const \textbf{ ec\+\_\+pdo\+\_\+t}$\ast$ ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo\+\_\+const (\begin{DoxyParamCaption}\item[{const \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$}]{pl,  }\item[{uint16\+\_\+t}]{index }\end{DoxyParamCaption})}



Finds a P\+DO with the given index and returns a const pointer. 

\begin{DoxyReturn}{Returns}
Search result, or N\+U\+LL. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em pl} & P\+DO list. \\
\hline
{\em index} & P\+DO index. \\
\hline
\end{DoxyParams}


Definition at line 265 of file pdo\+\_\+list.\+c.

\mbox{\label{pdo__list_8h_acc0eb92da1b63278a6b7a2f7e9d30f6b}} 
\index{pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}!ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo\+\_\+by\+\_\+pos\+\_\+const@{ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo\+\_\+by\+\_\+pos\+\_\+const}}
\index{ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo\+\_\+by\+\_\+pos\+\_\+const@{ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo\+\_\+by\+\_\+pos\+\_\+const}!pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}}
\subsubsection{ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo\+\_\+by\+\_\+pos\+\_\+const()}
{\footnotesize\ttfamily const \textbf{ ec\+\_\+pdo\+\_\+t}$\ast$ ec\+\_\+pdo\+\_\+list\+\_\+find\+\_\+pdo\+\_\+by\+\_\+pos\+\_\+const (\begin{DoxyParamCaption}\item[{const \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$}]{pl,  }\item[{unsigned int}]{pos }\end{DoxyParamCaption})}



Finds a P\+DO via its position in the list. 

Const version.

\begin{DoxyReturn}{Returns}
Zero on success, otherwise a negative error code. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em pl} & P\+DO list. \\
\hline
{\em pos} & Position in the list. \\
\hline
\end{DoxyParams}


Definition at line 289 of file pdo\+\_\+list.\+c.

\mbox{\label{pdo__list_8h_a1b62a9bbe8dd2779c47b7f17208958f3}} 
\index{pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}!ec\+\_\+pdo\+\_\+list\+\_\+count@{ec\+\_\+pdo\+\_\+list\+\_\+count}}
\index{ec\+\_\+pdo\+\_\+list\+\_\+count@{ec\+\_\+pdo\+\_\+list\+\_\+count}!pdo\+\_\+list.\+h@{pdo\+\_\+list.\+h}}
\subsubsection{ec\+\_\+pdo\+\_\+list\+\_\+count()}
{\footnotesize\ttfamily unsigned int ec\+\_\+pdo\+\_\+list\+\_\+count (\begin{DoxyParamCaption}\item[{const \textbf{ ec\+\_\+pdo\+\_\+list\+\_\+t} $\ast$}]{pl }\end{DoxyParamCaption})}



Get the number of P\+D\+Os in the list. 

\begin{DoxyReturn}{Returns}
Number of P\+D\+Os. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em pl} & P\+DO list. \\
\hline
\end{DoxyParams}


Definition at line 311 of file pdo\+\_\+list.\+c.

